package tools;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.Timer;

public class DoubleKlick implements ActionListener {
	Timer timer;
	int clicks;

	@Override
	public void actionPerformed(ActionEvent arg0) {
		if (clicks == 1)
			System.out.println("1 Klick");
		if (clicks == 2)
			System.out.println("Doppelklick");
		clicks = 0;
		timer.stop();

	}
}